This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
~Yentl Mingeroskinivu 26.Jan.04 04:08 PM a Web browser Domino Designer6.0.1 CF1Windows NT
Hi all,
I am experiencing the following problem, hope someone can help.
I have an agent that creates an email, containing some text and then shows this email to the user so he/she can further edit it.
The strange thing is, that the body of the email shows empty (also there is no text in it when I look at the properties). All other attributes, such as SendTo and Subject are OK.
However, when I step through my code using the debugger, the body does contain the correct text.
What can be wrong?
The code of my agent is as follows:
Sub Initialize
Dim currDb As NotesDatabase
Dim currDoc As NotesDocument
Dim mailDoc As NotesDocument
Dim s As New NotesSession
Dim rtitem As NotesRichTextItem
NotesDocumentCollection
Dim mailDb As New NotesDatabase ("", "")
Dim ws As New NotesUIWorkspace
Set currDb = s.CurrentDatabase
Set currDoc = s.DocumentContext
Call mailDb.OpenMail
Set mailDoc = New NotesDocument(mailDb)
mailDoc.Form = "Memo"
If currDoc.Email(0) <> "" Then
maildoc.SendTo = currDoc.Email(0)
End If
Set rtitem = New NotesRichTextItem (maildoc, "Body" )
Call rtitem.AppendText("sometext") maildoc.Subject = "Bevestiging pakket aankoop"
Call ws.EditDocument(True, mailDoc)
Exit Sub
ErrorHandling:
Print "Error - " & Error & " - Erl: " & Erl
Exit Sub
End Sub